#include"UdpClient.hpp"
#include<memory>
//"120.78.126.148"点分十进制字符串风格的ip地址

int main(int argc, char* argv[])
{
	if (argc != 3)
    {
		std::cerr << "Usage: " << argv[0] << " server_ip server_port" << std::endl;
		return 1;
	}

	std::string server_ip = argv[1];
	int server_port = atoi(argv[2]);
	UdpClient* clt = new UdpClient(server_ip, server_port);
	clt->InitClient();
	clt->Run();
	return 0;
}
